package com.zhiche.lisa.bms.dao.model.pay;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 付款确认-支付申请
 * </p>
 *
 * @author WangShuiJin
 * @since 2018-10-11
 */
@TableName("lisa_pay_affirm_apply")
public class PayAffirmApply extends Model<PayAffirmApply> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 主表id
     */
    @TableField("head_id")
    private Long headId;
    /**
     * 支付申请单id
     */
    @TableField("capital_dtl_id")
    private Long capitalDtlId;
    /**
     * 支付申请单单号
     */
    @TableField("pay_code")
    private String payCode;
    /**
     * 车队id
     */
    @TableField("fleet_id")
    private Long fleetId;
    /**
     * 车队id
     */
    @TableField("fleet_name")
    private String fleetName;

    /**
     * 尾款现金金额
     */
    private BigDecimal sum;

    /**
     * 已排金额
     */
    @TableField("paid_sum")
    private BigDecimal paidSum;
    /**
     * 未排金额
     */
    @TableField("not_paid_sum")
    private BigDecimal notPaidSum;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getHeadId() {
        return headId;
    }

    public void setHeadId(Long headId) {
        this.headId = headId;
    }

    public Long getCapitalDtlId() {
        return capitalDtlId;
    }

    public void setCapitalDtlId(Long capitalDtlId) {
        this.capitalDtlId = capitalDtlId;
    }

    public String getPayCode() {
        return payCode;
    }

    public void setPayCode(String payCode) {
        this.payCode = payCode;
    }

    public Long getFleetId() {
        return fleetId;
    }

    public void setFleetId(Long fleetId) {
        this.fleetId = fleetId;
    }

    public String getFleetName() {
        return fleetName;
    }

    public void setFleetName(String fleetName) {
        this.fleetName = fleetName;
    }

    public BigDecimal getSum() {
        return sum;
    }

    public void setSum(BigDecimal sum) {
        this.sum = sum;
    }

    public BigDecimal getPaidSum() {
        return paidSum;
    }

    public void setPaidSum(BigDecimal paidSum) {
        this.paidSum = paidSum;
    }

    public BigDecimal getNotPaidSum() {
        return notPaidSum;
    }

    public void setNotPaidSum(BigDecimal notPaidSum) {
        this.notPaidSum = notPaidSum;
    }

    /**
     * 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PayAffirmApply{" +
                "id=" + id +
                ", headId=" + headId +
                ", capitalDtlId=" + capitalDtlId +
                ", payCode=" + payCode +
                ", fleetId=" + fleetId +
                ", fleetName=" + fleetName +
                ", sum=" + sum +
                ", paidSum=" + paidSum +
                ", notPaidSum=" + notPaidSum +
                "} " + super.toString();
    }
}
